<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
    <style>
       #gy{color: green}
       .col{color:yellow;}
      .col2 ,#pg{background-color: red;}
      body div div p{color:palevioletred;
      background-color: yellow}
       a:link{color: green}
       a:visited{color:red}
       a:hover{color: yellow}
       a:active{color:pink}
    </style>
<body>
<ul>
    <li>刘备</li>
    <li id="gy">关羽</li>
    <li class="col">张飞</li>
</ul>
<p class="col2">香蕉</p>
<p class="col" id="pg">苹果</p>
<input class="col2" type="text" placeholder="用户名">
<input  class="col2" type="password" placeholder="密码
">
<div>
    <p>p1</p>
    <div><p >p2</p></div>
    <div>
        <div><p>p3</p></div>
    </div>
</div>
<a href="http://www.tedu.cn">达内官网
</a>
</body>
</html>